package com.cli.springboot_stater.service;

import com.cli.springboot_stater.config.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author mir.xiong
 * @version 1.0
 * @description
 * @see
 * @since Created by work on 2022/4/23 23:20
 */
@Service
public class HelloService {

    @Autowired
    private HelloProperties helloProperties;


    public String sayHello(String name) {
        return "Hello " + name + " " + helloProperties.getMsg();

    }


}
